package com.rrjjg.app.admin.api.vo;

import com.rrjjg.app.core.utils.ValidationUtil;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;
import lombok.Data;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.util.List;

/**
 * ----------------------------------------------------------------------------- <br>
 * 功能 :  <br>
 * ----------------------------------------------------------------------------- <br>
 * 作者 : Vayne <br>
 * 时间 : 2023/4/8 <br>
 */
@Data
@Accessors(chain = true)
public class UserVo implements Serializable {

    @NotBlank(message = "登录名不能为空",groups = {ValidationUtil.add.class, ValidationUtil.update.class})
    private String loginName;
    @NotBlank(message = "登录密码不能为空",groups = {ValidationUtil.add.class, ValidationUtil.update.class})
    private String password;
    @NotNull(message = "id不能为空",groups = {ValidationUtil.update.class,ValidationUtil.del.class})
    private Long id;
    private Long roleId;

    private List<String> roles;


}
